﻿using System;
using System.Collections.Generic;
using Acaweb.Data.Contracts;
using Acaweb.Model.Entities;
using Acaweb.Model.Entities.DatosCompuestos;
using Spring.Transaction.Interceptor;

namespace Acaweb.Data.Dao.NHibernate
{
    public class CompetenciasDao : HibernateDao<Competencias, int>, ICompetenciasDao
    {
        public IList<Competencias> GetByIsInicial(bool IsInicial)
        {
            return Session.QueryOver<Competencias>().Where(t => t.IsInicial == IsInicial).List();
        }

        public IList<Competencias> GetAll()
        {
            return GetAll<Competencias>();
        }
    }
}
